<html>
<head>
<script type="text/javascript">
		var aJaxURL	= "server-side/report/cartrije_printer.action.php";		//server side folder url
		var tName	= "report";		
		
		$(document).ready(function () {
			GetDate("search_start");
			GetDate("search_end");
			var start	= $("#search_start").val();
	    	var end		= $("#search_end").val();      	
			LoadTable(start,end);      				
		});
        
		function LoadTable(start, end){
			var total = [5];
			/* Table ID, aJaxURL, Action, Colum Number, Custom Request, Hidden Colum, Menu Array */
			GetDataTable2(tName, aJaxURL, "get_list",6, "start=" + start + "&end=" + end, 0, "", 1, "desc", total);
         }

	    $(document).on("change", "#search_start", function () {
	    	var start	= $(this).val();
	    	var end		= $("#search_end").val();
	    	LoadTable(start, end);
	    });
	    
	    $(document).on("change", "#search_end", function () {
	    	var start	= $("#search_start").val();
	    	var end		= $(this).val();
	    	LoadTable(start, end);
	    });

	    
</script>
<style>
table tr td:nth-child(11){
  	text-align: right;
  }
table tr td:nth-child(10){
  	text-align: right;
  }

</style>
</head>

<body>    
    <div id="dt_example" class="ex_highlight_row clear_box">
        <div id="container">
            <div id="dynamic">
            	<h2 align="center">ისტორია </h2>
            	
            	
            	  <div id="button_area">
	            	<div class="left" style="width: 250px;">
	            		<label for="search_start" class="left" style="margin: 5px 0 0 9px;">დასაწყისი</label>
	            		<input type="text" name="search_start" id="search_start" class="inpt right" style="padding: 0px !important; height: 25px !important;"/>
	            	</div>
	            	<div class="right" style="width: 250px;">
	            		<label for="search_end" class="left" style="margin: 5px 0 0 9px;">დასასრული</label>
	            		<input type="text" name="search_end" id="search_end" class="inpt right" style="padding: 0px !important; height: 25px !important;"/>
            		</div>
            	</div>
            	
            	
                <table class="display" id="report">
                    <thead>
                        <tr id="datatable_header">
                            <th>ID</th>
                            <th style="width: 150px;">შტრიხკოდი<br>სერიული</th>     
                            <th style="width: 110px;">მოდელი</th>  
                            <th style="width: 101px;">პრინტერის მოდელი</th>   
                            <th style="width: 155px;">შესრულებული<br>სამუშაო</th>
                            <th style="width: 60px;">თანხა</th>                                          
                        </tr>
                    </thead>
                    <thead>
                        <tr class="search_header">
                            <th class="colum_hidden">
                            	<input type="text" name="search_id" value="ფილტრი" class="search_init" />
                            </th>
                            <th>
                                <input type="text" name="search_type" value="ფილტრი" />
                            </th>
                             <th>
                                <input type="text"  name="search_type" value="ფილტრი"  />
                            </th>    
                            <th>
                                <input type="text" name="search_code" value="ფილტრი"  />
                            </th>                            
                            <th>
                               <input type="text"  name="search_model" value="ფილტრი" />                              
                            </th>
                            <th>
                               <input type="text"  name="search_letter" value="ფილტრი" />
                            </th>                                                                    
                        </tr>
                    </thead>                       
                    <tfoot>
                        <tr>                        
                            <th>&nbsp;</th>
                            <th>&nbsp;</th> 
                            <th>&nbsp;</th>
                            <th>&nbsp;</th>                             
                            <th><p align="right">ჯამი:<br/>სულ ჯამი:</th>
                            <th>&nbsp;</th>                                                   
                        </tr>
                    </tfoot>
                </table>
            </div>
            <div class="spacer">
            </div>
        </div>
    </div>
    <!-- jQuery Dialog -->
    
</body>
</html>